package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface DishFlavorMapper {

    @AutoFill(value = OperationType.INSERT)
    int insert(List<DishFlavor> dishFlavors);

    DishFlavor selectById(Long id);


    List<DishFlavor> selectByDishId(Long dishId);


    int deleteById(Long id);

    int deleteByDishId(Long dishId);

    void delete(List<Long> ids);
}
